;; ---------------- JAVA模式配置 ----------------

(setq lsp-java-server-install-dir
      "~/.opt/jdt-language-server-1.8/")
(require 'lsp-java)
(setq c-default-style
      '((java-mode . "java")(other . "awk")))
(add-hook 'java-mode-hook  'linum-mode)
(add-hook 'java-mode-hook #'lsp)
(add-hook 'java-mode-hook 'my-java-mode-hook)
(defun my-java-mode-hook ()
 "Custom `java-mode' behaviours."
  (setq c-basic-offset 4)
  (setq tab-width c-basic-offset)
  (setq indent-tabs-mode t))
